/*    */ package com.zimbra.cs.service.account;
/*    */ 
/*    */ import com.zimbra.common.soap.AccountConstants;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.cs.util.WebClientL10nUtil;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import java.util.Locale;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class GetAllLocales
/*    */   extends AccountDocumentHandler
/*    */ {
/*    */   public Element handle(Element request, Map<String, Object> context)
/*    */   {
/* 32 */     ZimbraSoapContext zsc = getZimbraSoapContext(context);
/*    */     
/* 34 */     Locale[] locales = WebClientL10nUtil.getAllLocalesSorted();
/* 35 */     Element response = zsc.createElement(AccountConstants.GET_ALL_LOCALES_RESPONSE);
/* 36 */     for (Locale locale : locales) {
/* 37 */       ToXML.encodeLocale(response, locale, Locale.US);
/*    */     }
/* 39 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/account/GetAllLocales.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */